package com.globallogic.jaxrs;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import com.globallogic.model.transferobject.UserTo;

@XmlRootElement(name = "userlist")
@XmlAccessorType(XmlAccessType.FIELD)
public class UserList {
	
	public void add(UserTo userTo) {
		user.add(userTo);
	}
	
	public UserList(){
		user = new ArrayList<UserTo>(); 
	}
	
	private List<UserTo> user;
	
	public List<UserTo> getUserList() {
		return user;
	}
}
